import util from "../utils/util.js";
//获取油枪列表
function getOilGunModel(id) {
    const url = util.api.guns + id + '/guns'
    const data = {}
    const method = 'GET'
    return util.sendRequest(url, method, data)
}
//获取优惠券列表
function getCouponsModel(page, status, limit) {
    const url = util.api.coupons;
    const method = "GET";
    const data = {
        token: util.token,
        status,
        page,
        limit
    }
    return util.sendRequest(url, method, data)
}
//获取订单列表
function getOrderListModel(page, status, limit) {
    const url = util.api.orders;
    const method = 'GET';
    const data = {
        token: util.token,
        status,
        page,
        limit
    }
    return util.sendRequest(url, method, data)
}

export {
    getOilGunModel,
    getCouponsModel,
    getOrderListModel
}